package cn.bob.org.mapper;

import cn.bob.basic.mapper.IBaseMapper;
import cn.bob.org.domain.Department;
import cn.bob.org.domain.Employee;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @author bob
 * @data 2022/9/28-10:54
 */
public interface EmployeeMapper extends IBaseMapper<Employee> {


    //抽屉
    List<Employee> deawer(Long id);

    //根据名字查询emp
    Employee findByName(String username);
    //添加中间表
    void addEmpMidden(@Param("id") Long id,@Param("roles") List<Long> roles);
    //删除中间表
    void delEmpMidden(Long id);
    //批量删除中间表
    void batchDelEmpMidden(List<Long> ids);
    //查询emp中间表 的id集合
    List<Long> findEmpMidden(Long id);
    //根据logininfo查询emp
    Employee findByLogid(Long loginId);

    List<Employee> findByShopId(Long id);
}
